<template>
	<view>
		<u-card padding="16" v-for="(item,index) in dataList" :key="index">
			<view class="" slot="head">
				<view class="wrap">
					<u-row>
						<u-col span="12" text-align="left">
							<view class=" u-m-t-2 weikaishi3 lanse">
								<span>收货单位：{{item.getUnit}}</span>
							</view>
						</u-col>
						<u-col span="12" text-align="left">
							<view class="weikaishi5">
								<span><u-icon name="map" size="29" labelSize="14px" labelColor="#00c300" label="地址"></u-icon>：{{item.getLocation}}</span>
							</view>
						</u-col>
					</u-row>
				</view>
				<u-row>
					<u-col span="6" text-align="left">
						<view class=" u-m-t-2 weikaishi4">
							<span>配置：{{item.tooVolume}}m³</span>
						</view>
					</u-col>
					<u-col span="6" text-align="left">
						<view class=" u-m-t-2 weikaishi4">
							<span>件数：{{item.tooNum}}</span>
						</view>
					</u-col>
				</u-row>
			</view>
			<view class="" slot="body">
				<view class="wrap">
					<view v-for="(item2,index2) in item.list" :key="index2">
						<u-row>
							<u-col span="12" text-align="left">
								<view class="weikaishi4">
									<span>单号：{{item2.customerOrder}}</span>
								</view>
							</u-col>
							<u-col span="8" text-align="left">
								<view class=" weikaishi4">
									<span>制单日期：{{item2.setMentiontime}}</span>
								</view>
							</u-col>
							<u-col span="4" text-align="left">
								<view class=" lanse">
									<span>备货区：{{item2.areanumber}}</span>
								</view>
							</u-col>
						</u-row>
						<u-collapse>
							<u-collapse-item :title="item2.tooVolume+'m³，'+item2.tooNum+'件'">
								<view v-for="(item3,index3) in item2.listd" :key="index3">
									<u-row>
										<u-col span="12" text-align="left">
											<view class=" weikaishi6">
												<span>{{item3.goodsName}}</span>
											</view>
										</u-col>
										<u-col span="6" text-align="left">
											<view class="u-line-1 weikaishi6">
												<span>体积：{{item3.tooDeployVolume}}m³</span>
											</view>
										</u-col>
										<u-col span="6" text-align="right">
											<view class="u-line-1 weikaishi6">
												<span>数量：{{item3.tooDeployNum}}</span>
											</view>
										</u-col>
									</u-row>
									<u-row>
										<u-col span="12" text-align="left">
											<view class="u-m-t-25">
											</view>
										</u-col>
									</u-row>
								</view>
							</u-collapse-item>
						</u-collapse>
					</view>
				</view>
			</view>
		</u-card>
		<view>
			<u-toast ref="uToast" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[],
			}
		},
		onLoad() {
			this.refresh()
		},
		methods: {
			refresh(){
				this.$http.post('/rest/transport/listOrder',{
				},{
					params: {
						carnumbger:uni.getStorageSync('check_carnumbger')
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					this.dataList = res.data.data
				})
			},
		}
	}
</script>


<style lang="scss">
	.u-body-item {
		padding: 20rpx 15rpx;
	}
	.wrap {
		padding: 0rpx 12rpx;
	}

	.u-row {
		margin: 10rpx 2rpx;
	}
	.weikaishi2{
		font-size: 34rpx;
	}
	.baise{
		color: #ffffff;
		font-size: 34rpx;
	}
</style>
